package com.ay.wiki_plt.config;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.Environment;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@ComponentScan("com.ay")
@MapperScan("com.ay.wiki_plt.mapper")
@SpringBootApplication
@Slf4j
@EnableScheduling
@EnableAsync
public class WikiPltApplication {

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(WikiPltApplication.class);
        Environment env = app.run(args).getEnvironment();
        log.info("启动成功!");
        log.info("地址:\thttp://127.0.0.1:{}", env.getProperty("server.port"));
    }

}
